//package cn.edu.zut.graduate.listener;
//
//import cn.edu.zut.graduate.supervisor.DaoFit;
//import org.springframework.beans.factory.InitializingBean;
//import org.springframework.stereotype.Repository;
//import org.springframework.web.context.ServletContextAware;
//
//import javax.annotation.Resource;
//import javax.servlet.ServletContext;
//
///**
// * Created by cc on 16/1/6.
// */
//@Repository
//public class InitDataListener implements InitializingBean,ServletContextAware {
//
//    private ServletContext servletContext;
//
//    @Resource
//    private DaoFit daoFit;
//
//    @Override
//    public void afterPropertiesSet() throws Exception {
//        System.out.println("开始添加功能模块");
////        List<Function> functionList = daoFit.getFunctionDao().findAll(new RowBounds());
////
////        for (Function f : functionList){
////            DataLS.functionMap.put(f.getAction(),f);
////        }
////        servletContext.setAttribute("functionMap",functionMap);
//        System.out.println("添加功能模块成功");
//
//    }
//
//    @Override
//    public void setServletContext(ServletContext servletContext) {
//        this.servletContext = servletContext;
//    }
//}
